import CodeSnapped from "./dist/treesitter.js";
import { CodeSnippetsCodebaseIndex } from "./src/core/codeSnippetsIndex.js";

// 从数据库中检索相似代码片段
const query = "exportShowStat";
const topK = 5;
const results = await CodeSnippetsCodebaseIndex.getAll(query, topK);
console.log(results);